<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%
    String path = request.getContextPath();
%>
<%--头部公共画面--%>
<div class="navbar navbar-default" id="navbar">
<script type="text/javascript">
    try {
        ace.settings.check('navbar', 'fixed')
    } catch (e) {
    }
</script>

<div class="navbar-container" id="navbar-container">
<div class="navbar-header pull-left">
    <a href="<%=path%>/control/index.jsp" class="navbar-brand">
        <small>
            欢迎使用南阳广达软件科技有限公司云收银系统
        </small>
    </a><!-- /.brand -->
</div>
<!-- /.navbar-header -->

<div class="navbar-header pull-right" role="navigation">
<ul class="nav ace-nav">
    <li class="light-blue">
        <a data-toggle="dropdown" href="#" class="dropdown-toggle">
            <span class="user-info">
                <small>欢迎光临,</small>
                <span id="username" name="username">Jason</span>
            </span>

            <i class="icon-caret-down"></i>
        </a>

        <ul class="user-menu pull-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
        <li>
            <a href="<%=path%>/control/uc/login.jsp">
                <i class="icon-off"></i>
                退出
            </a>
        </li>
    </ul>
</li>
</ul>
<!-- /.ace-nav -->
</div>
<!-- /.navbar-header -->
</div>
<!-- /.container -->
</div>

<script>
    initUserInfo();
    function initUserInfo(){
        var userInfo = cochoApp.getUserInfoByStorage();
        if (userInfo != null) {
            $("#username").text(userInfo.username);
        }
    }
</script>

